package com.jsb.laundry.model.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(description = "用户账号")
public class UserInfoDto {
    @ApiModelProperty("用户id")
    private String userId;
    @ApiModelProperty("用户openid")
    private String openId;
    @ApiModelProperty("用户unionId")
    private String unionId;
    @ApiModelProperty("用户sessionKey")
    private String sessionKey;

    @ApiModelProperty("用户手机号")
    private String userPhone;

    @ApiModelProperty("用户名")
    private String userName;
    @ApiModelProperty("用户头像")
    private String userAvatar;

    @ApiModelProperty("用户生日")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date userBirth;

    @ApiModelProperty("用户性别(0：未知,1：男,2：女)")
    private String userSex;
    @ApiModelProperty("注册的类型(0小程序,1App)")
    private String loginType;
    @ApiModelProperty("用户账号状态(正常：0,封禁：1)")
    private String delFlag;

}
